package com.app.adnroid.sichuanxiaoke.cn.xiaokebusiness.activity;

import android.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.app.adnroid.sichuanxiaoke.cn.xiaokebusiness.R;
import com.baidu.mapapi.SDKInitializer;

public class TestActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SDKInitializer.initialize(getApplicationContext());//初始化 百度地图 要放在setContentView（）之前
        setContentView(R.layout.activity_test);

        new AlertDialog.Builder(this)
                .setTitle("警告")
                .setMessage("请手动在应用中心打开该应用的读写权限")
                .setNegativeButton("确定",null)
                .create()
                .show();
    }
}
